package com.cgydu.service;

import com.cgydu.entity.Address;

import java.sql.SQLException;
import java.util.List;

/**
 * projectName: day25_store
 * author: CGY
 * time: 2020/9/5 9:36
 * description:
 */
public interface AddressService {
    List<Address> findAddressByUid(int uid) throws SQLException;

    void saveAddress(Address address) throws SQLException;

    void deleteAddressByAid(String aid) throws SQLException;

    void setAddressToDefault(String aid, int uid) throws SQLException;

    void updateByAid(Address address) throws SQLException;
}